<?php
    include('header.php');
    
    $msg = array();
    $sql = "SELECT td_th FROM text_data WHERE td_id=6 OR td_id=7  OR td_id=8  OR td_id=9 OR td_id=15 ORDER BY td_id";
    $result = $db->Execute($sql);
    $i = 0;
    while (!$result->EOF)
    {
        $msg[$i]['th'] = $result->fields['td_th'];
        $i++;
        $result->MoveNext();
    }
    $result->Close();
    
?>
    <div class="grid_24" id="contents">
        
        <div id="contents_">
            <form action="?m=contact-us&s=index_query" method="post">
            <div id="about_us_company_msg_1_th" class="form_field">
                <p>ชื่อบริษัท : </p>
                <input type="text" class="input large" name="msg_1" value="<?php echo $msg[0]['th']; ?>" />
            </div>
            <div id="about_us_company_msg_1_en" class="form_field">
                <p>ที่อยู่ : </p>
                <input type="text" class="input large" name="msg_2" value="<?php echo $msg[1]['th']; ?>" />
            </div>
            
            <div id="about_us_company_msg_2_th" class="form_field">
                <p>เบอร์โทรศัพท์ : </p>
                <input type="text" class="input large" name="msg_3" value="<?php echo $msg[2]['th']; ?>" />
            </div>
            <div id="about_us_company_msg_2_en" class="form_field">
                <p>Fax : </p>
                <input type="text" class="input large" name="msg_4" value="<?php echo $msg[3]['th']; ?>" />
            </div>
            <div id="about_us_company_msg_2_en" class="form_field">
                <p>Email : </p>
                <input type="text" class="input large" name="msg_5" value="<?php echo $msg[4]['th']; ?>" />
            </div>
            
            <div id="about_us_company_msg_2_en" class="form_field">
                <button class="button">SAVE</button>
            </div>
            </form>
        </div>
        
    </div><!-- end .grid_18 -->
    <div class="clear">&nbsp;</div>
<?php
    include('footer.php');
?>